package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/AsnCollect")
public class AsnCollectgoods {
    @Autowired
    SysMenuService menuService;

    //主页面
    @RequestMapping(value = "/check/{menu}")
    public String toKq(@PathVariable("menu") String menu, Model model) {
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "AsnCollectgoods/checkAsn";
    }
    /*@RequestMapping(value = "/check")
    public String check(){
        return "AsnCollectgoods/checkAsn";
    }*/

    @RequestMapping(value = "/confirm")
    public String confirm(String id, Model model){
        model.addAttribute("id",id);
        return "/AsnCollectgoods/confirmAsn";
    }
    @RequestMapping(value = "/Asntz")
    public String Asntz(String id, Model model){
        model.addAttribute("id",id);
        return "/AsnCollectgoods/Asntz";
    }
    @RequestMapping(value = "/Asnbftz")
    public String Asnbftz(String id, Model model){
        model.addAttribute("id",id);
        return "/AsnCollectgoods/Asnbftz";
    }
    @RequestMapping(value = "/delete")
    public String delete(String id, Model model){
        model.addAttribute("id",id);
        return "/AsnCollectgoods/deleteAsn";
    }

}
